import request from '@/utils/request'

/**
 * @description: 获取其他入库单清单
 * @param {*} data
 * @return {*}
 */
export function getQtrkdOrderList(params) {
  return request({
    url: '/order/qtrkd/list',
    method: 'get',
    params
  })
}

/**
 * @description: 保存其他入库单
 * @param {*} params
 * @return {*}
 */
export function saveQtrkdOrder(data) {
  return request({
    url: '/order/qtrkd/add',
    method: 'post',
    data
  })
}

/**
 * @description: 获取其他入库单详情
 * @param {*} params
 * @return {*}
 */
export function getQtrkdDetail(params) {
  return request({
    url: '/order/qtrkd/detail',
    method: 'get',
    params
  })
}

/**
 * @description: 单据更新
 * @param {*} params
 * @return {*}
 */
export function updateQtrkd(data) {
  return request({
    url: '/order/qtrkd/update',
    method: 'post',
    data
  })
}

/**
 * @description: 单据、反审核
 * @param {*} data
 * @return {*}
 */
export function examineQtrkd(data) {
  return request({
    method: 'post',
    url: '/order/qtrkd/examine',
    data
  })
}

/**
 * @description: 其他入库单删除
 * @param {*} data
 * @return {*}
 */
export function deleteQtrkd(data) {
  return request({
    url: '/order/qtrkd/delete',
    method: 'post',
    data
  })
}
